<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button id="btn" onclick="demo()">点击</button>
    <script>
        function demo() {
            window.open("open.html","windowName","height=200,width=200,top=100,left=0");
        }
    </script>
</body>
</html>